package com.neoCalf.neoCommon.enums;

import lombok.Getter;
import lombok.Setter;


@Getter
public enum ResultCode {
    Success(1, "操作成功"),
    Fail(0, "操作失败"),
    NotFindError(10001, "未查询到信息"),
    SaveError(10002, "保存信息失败"),
    UpdateError(10003, "更新信息失败"),
    DeleteError(100012, "删除信息失败"),
    ValidateError(10004, "数据检验失败"),
    StatusHasValid(10005, "状态已经被启用"),
    StatusHasInvalid(10006, "状态已经被禁用"),
    SystemError(10007, "系统异常"),
    BusinessError(10008, "业务异常"),
    TransferStatusError(10010, "当前状态不正确，请勿重复提交"),
    NotGrant(10011, "没有操作该功能的权限，请联系管理员"),
    CODE_10013(10013, "请求地址不存在"),
    CODE_500(500, "抱歉,服务器出差?"),
    CODE_10015(10015, "未登录"),
    CODE_10016(10016, "无权限"),
    CODE_10017(10017, "请求参数错误"),
    CODE_10018(10018, "邮箱验证码发送失败"),
    CODE_900(900, "登录超时");

    @Setter
    private Integer code;
    @Setter
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
